package com.styles.codingstyle.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description:推荐使用自定义异常
 * @Author: 陈建
 * @date: 2018/6/6 9:47
*/
@Setter
@Getter
@ToString
public class CommonException extends RuntimeException {
    private Integer code;

    public CommonException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
